<template>
  <section class="jumbotron">
    <h3 class="jumbotron-heading">Search Github Users</h3>
    <div>
      <input
        v-model="keyword"
        type="text"
        placeholder="enter the name you search"
      />&nbsp;<button @click="search">Search</button>
    </div>
  </section>
</template>

<script>
export default {
  name: "Header",
  data() {
    return {
      keyword: "",
    };
  },
  methods: {
    search() {
      this.$bus.$emit("sendMsg", this.keyword);
    },
  },
};
</script>

<style scoped></style>
